package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Qinheyun
 * @Description: 报修单统计表
 */
@Data
@NoArgsConstructor
public class Statistics {
    /** 序号*/
    private Integer id;

    /** 校区*/
    private String campus;

    /** 楼号*/
    private String storey;

    /** 房间号*/
    private String roomNumber;

    /** 时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date rtime;

    public Statistics(String campus, String storey, String roomNumber) {
        this.campus = campus;
        this.storey = storey;
        this.roomNumber = roomNumber;
    }
}
